package cn.yudao.ymcc.feign;

import cn.yudao.ymcc.result.JSONResult;
import cn.yudao.ymcc.searchDoc.CourseDoc;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(name = "service-search", fallbackFactory = CourseFeignFallbackFactory.class)
public interface CourseFeign {


    @PostMapping("/course/save")
    JSONResult save(@RequestBody CourseDoc courseDoc);

    @PostMapping("/course/delete")
    JSONResult delete(@RequestBody Long id);


}
